/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.crm.logistic.remote.RemoteUserService
   Module Description   :

   Date Created      : 2011/4/28
   Original Author   : cut7man
   Team              : yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
package com.yaodian100.crm.logistic.remote;

import java.util.Date;

import javax.jws.WebMethod;
import javax.jws.WebService;

import org.springframework.security.userdetails.UserDetailsService;

import com.yaodian100.core.admin.entity.User;
import com.yaodian100.core.common.exception.CoreException;
import com.yaodian100.core.menu.entity.Menu;

/**
 * @author cut7man
 * 
 */
@WebService
public interface RemoteUserService extends UserDetailsService {
	@WebMethod
	public User getUser(String username);

	@WebMethod
	public Menu userStatus();

	@WebMethod
	public void unlock(String username);

	@WebMethod
	public String changePwd(String username, String oldPassword, String newPassword);

	@WebMethod
	public User[] toUnlock();

	@WebMethod
	public boolean validatePassword(User ruser, String password) throws CoreException;

	@WebMethod
	public void save(User user);

	public Date changeDate(String username);
}
